package cn.ctvonline.android.kaopu.base.util;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by dujian on 15/11/26.
 */
public class ToastUtil {
    static Toast toast;

    public static void show(Context context, String msg) {
        if (null == toast) {
            toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);
        } else {
            toast.setText(msg);
        }
        toast.show();
    }
}
